package com.topdt.jbpm.dto;

import java.util.ArrayList;
import java.util.List;

public class View {
	private String name;
	private List<String> check;
	
	public View(){}
	public View(String name,String check){
	  this.name = name;
	  if(this.check==null){
	    this.check = new ArrayList<String>();
	  }
	  this.check.add(check);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<String> getCheck() {
		return check;
	}

	public void setCheckStr(String check) {
	    char[] a = check.toCharArray();
	    for(char b:a){
	      if(this.check==null){
	        this.check = new ArrayList<String>();
	      }
	      this.check.add(b+"");
	    }
	}
    public void setCheck(List<String> check) {
      this.check = check;
    }

}
